package cn.felord.jsr303springboot.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 需要验证的java bean
 *
 * @author Dax
 * @since 16:42  2019-06-10
 */
@Data
public class PhoneVo {
    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^[1]([3-9])[0-9]{9}$", message = "手机号码不合法")
    private String phoneNumber;
}
